Skip to content

Conversation

thoaltmann
Copy link

☕️ Reasoning

The https://github.com/panva/hkdf repository has been archived with the following notice in the readme:

This project is now archived. The functionality provided here is no longer necessary, as the Web Cryptography API is now widely supported across all major and modern JavaScript runtimes and you may just use the following ...

So this PR replaces the dependency to @panva/hkdf with the proposed alternative using the Cryptography API. We had issues with jest and next-auth regarding ESM-imports from this package (which was fixed by mocking the surrounding methods, but that issue will not happen to others with this change).

I didn't create an issue for this, as the change was quickly made, so if any discussion is needed, it can be done here, or feel free to close the PR if there are other factors I am not aware of that would make this change problematic.

🧢 Checklist

  • Documentation (only implementation detail)
  • Tests (jwt tests are already in place and still green)
  • Ready to be merged

🎫 Affected issues

n.a.

📌 Resources

Copy link

vercel bot commented Aug 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
auth-docs Ready Ready Preview Comment Aug 28, 2025 8:33am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
next-auth-docs Ignored Ignored Preview Aug 28, 2025 8:33am

Copy link

vercel bot commented Aug 28, 2025

@thoaltmann is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the core Refers to `@auth/core` label Aug 28, 2025
@thoaltmann thoaltmann changed the title chore(deps): remove @panve/hkdf in favor of Web Cryptography API chore(deps): remove @panva/hkdf in favor of Web Cryptography API Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant